package com.example.gkw.dagger2test.demo2;

import javax.inject.Inject;

/**
 * Describe:需要依赖Engine
 * Author:hcs
 * Email:aaron1539@163.com
 * Date:2018/12/24 14:09
 **/
public class Car {
    @Inject
    Engine engine;

    public Car() {
        DaggerFCarComponent.builder().markCarModule(new MarkCarModule()).build().inject(this);
    }

    public Engine getEngine() {
        return engine;
    }
}
